home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 011 / pcdbms2.arc / MANUAL.1 < prev    next >
Encoding:
Text File  |  1986-03-01  |  42.2 KB  |  1,531 lines

  1. .X:10 
  2.  
  3.                   USER'S GUIDE FOR THE
  4.         PC-DBMS (TM) DATA BASE MANAGEMENT SYSTEM
  5.  
  6.                        version 1.0
  7.  
  8.  
  9.  
  10.                 (C) COPYRIGHT KWARE, 1985
  11.  
  12.  
  13. Paul Kobrin
  14. Kware
  15. P.O. Box 16206
  16. Arlington, Va. 22215
  17.  
  18.                PC-DBMS DISTRIBUTION NOTICE
  19.  
  20.  
  21. PC-DBMS is distributed as user  supported  software.   If
  22. you  like  it, I ask that you send a voluntary payment of
  23. $60 which will entitle you  to  a  typeset  copy  of  the
  24. User's  Guide,  a  mailed  copy  of  the  next version of
  25. PC-DBMS without charge, support and  my  thanks.   Please
  26. see appendix C for more information.
  27.  
  28. In any event,  you  are  encouraged  to  make  unmodified
  29. copies  of  the  complete  set  of distribution files for
  30. others.  Commercial sale of  PC-DBMS  in  any  manner  is
  31. prohibited  without  Kware's  written permission but user
  32. groups  and  similar  non-commercial  organizations   may
  33. impose   their   customary   charges  for  copying,  etc.
  34. Reproduction of the printed manual is prohibited.
  35.  
  36.  
  37.  
  38.                        DISCLAIMER
  39.  
  40.  
  41. In no event will the author or supplier of  this  program
  42. be  liable  to  you  for  any damages, including any lost
  43. profits,   lost   savings   or   other   incidental    or
  44. consequential   damages   arising  from  the  use  of  or
  45. inability to use this program,  even  if  the  author  or
  46. supplier  has  been  advised  of  the possibility of such
  47. damages, or for any claim by any other party.
  48.  
  49. PC-DBMS is a trademark of Kware, Inc.
  50. IBM is a trademark of 
  51.   International Business Machines Corporation.
  52. MS is a trademark of Microsoft Corporation.
  53.  
  54.  
  55.  
  56.                          CONTENTS
  57.    
  58. CHAPTER 1       INTRODUCTION
  59.   
  60. CHAPTER 2       GETTING STARTED
  61.  
  62.                 System Requirements . . . . . . . . . 2-1
  63.                 Distribution Diskette . . . . . . . . 2-1
  64.                 Installation  . . . . . . . . . . . . 2-2
  65.   
  66. CHAPTER 3       HANDS ON TUTORIAL
  67.  
  68.                 Starting the Program  . . . . . . . . 3-2
  69.                 Help  . . . . . . . . . . . . . . . . 3-3
  70.                 Command Entry and Editing . . . . . . 3-4
  71.                 The Open Command  . . . . . . . . . . 3-4
  72.                 The Select Command  . . . . . . . . . 3-5
  73.                 The Show Command  . . . . . . . . . . 3-8
  74.                 The Remove Command . . . . . . . . . 3-10
  75.                 The Display Command  . . . . . . . . 3-10
  76.                 The Define Command . . . . . . . . . 3-12
  77.                 The Key and Dekey Commands . . . . . 3-15
  78.                 The Exit Command . . . . . . . . . . 3-16
  79.  
  80. CHAPTER 4       GENERAL
  81.  
  82.                 Description of a PC-DBMS Data Base  . 4-1
  83.                 Limitations . . . . . . . . . . . . . 4-2
  84.                 Data File Structure, 
  85.                   Import and Export . . . . . . . . . 4-2
  86.                 Object Names  . . . . . . . . . . . . 4-3
  87.                 The PC-DBMS Editor  . . . . . . . . . 4-3
  88.                 Command Formatting and Execution  . . 4-4
  89.                 Help  . . . . . . . . . . . . . . . . 4-5
  90.  
  91.  
  92. CHAPTER 5       COMMAND REFERENCE
  93.  
  94.                 Overview  . . . . . . . . . . . . . . 5-1
  95.                 Notational Conventions  . . . . . . . 5-2
  96.                 Define  . . . . . . . . . . . . . . . 5-2
  97.                 Dekey . . . . . . . . . . . . . . . . 5-4
  98.                 Display . . . . . . . . . . . . . . . 5-4
  99.                 Exit  . . . . . . . . . . . . . . . . 5-8
  100.                 Key . . . . . . . . . . . . . . . . . 5-8
  101.                 Open  . . . . . . . . . . . . . . . . 5-9
  102.                 Output  . . . . . . . . . . . . . . . 5-9
  103.                 Remove . . . . . . . . . . . . . . . 5-10
  104.                 Select . . . . . . . . . . . . . . . 5-10
  105.                 Show . . . . . . . . . . . . . . . . 5-17
  106.                 Tolerance  . . . . . . . . . . . . . 5-20
  107.  
  108.  
  109. APPENDIX A      KEYWORDS
  110. APPENDIX B      THE RELATIONAL MODEL
  111. APPENDIX C      USER SUPPORTED SOFTWARE
  112. INDEX
  113.                             ii
  114.                         CHAPTER 1
  115.  
  116.                       INTRODUCTION
  117.  
  118.  
  119.  
  120. PC-DBMS is a data base management  system  built  on  the
  121. relational model.  Its features include
  122.  
  123.       -  Dynamically formatted full screen forms for data
  124.          entry,  retrieval  and  editing and for "fill in
  125.          the blanks" query composition.
  126.  
  127.       -  A  query  command  that  can  retrieve  selected
  128.          records  from  one  or  two  tables,  optionally
  129.          sorting them.
  130.  
  131.       -  Dynamic files, i.e., the  capability  to  create
  132.          new, defined tables from query results.
  133.  
  134.       -  A fast screen  editor  for  command  composition
  135.          with   previous   command  recall.   The  editor
  136.          features word wrapping and flying reform.
  137.  
  138.       -  A menu-based help system.
  139.  
  140.       -  Files containing the data tables look just  like
  141.          the tables, facilitating import and export.
  142.  
  143.       -  Indexing with automatic  index  update  on  data
  144.          entry,  deletion  or modification.  No operation
  145.          requires existence of an index.
  146.  
  147.        -  Optional use of color.
  148.  
  149.       -  Integrated data dictionary but kept in  its  own
  150.          file.
  151.  
  152.       -  Entire dbms contained in one EXE file.
  153.  
  154.  
  155.                          CHAPTER 2
  156.  
  157.                      GETTING STARTED
  158.  
  159.  
  160.  
  161. Please read through this section of the manual.  Then  go
  162. on to run the hands on tutorial in the next section.
  163.  
  164.  
  165.  
  166. SYSTEM REQUIREMENTS
  167.  
  168. PC-DBMS will run on IBM, Compaq  and  Columbia  computers
  169. and  similar  systems  under  PC/MS-DOS  version  1.1  or
  170. higher.  Minimum memory  is  192k.   One  disk  drive  is
  171. necessary.   A  second  drive  or hard disk is desirable.
  172. Output can be redirected to an optional  printer.   Color
  173. is vigorously supported but not required.
  174.  
  175. PC-DBMS operates  the  video  board  directly.   It  will
  176. support  IBM  monochrome  and  color  graphics boards and
  177. close copies of them.
  178.  
  179.  
  180.  
  181. DISTRIBUTION DISKETTE
  182.  
  183. The distribution diskette contains  the  files  shown  in
  184. Table 2-1.
  185.  
  186.  
  187.  
  188.  
  189.                            2-1
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.  
  207.  
  208.  
  209.                      Getting Started
  210.                   DISTRIBUTION DISKETTE
  211.  
  212.  
  213.  
  214. READ.ME         printing instructions for this manual
  215. MANUAL.1        first half of this manual
  216. MANUAL.2        second half of this manual
  217.  
  218. MUSIC.DEF       a sample
  219. COMPOSER.DAT             data base used 
  220. OPUS.DAT                                in the tutorial
  221.  
  222. PC-DBMS.EXE     the dbms program
  223.  
  224. REQUEST.DOC     payment form and invoice
  225.  
  226. Table 2-1.  Files on distribution diskette.
  227.  
  228.  
  229.  
  230. INSTALLATION
  231.  
  232. The  installation  task   copies   the   files   on   the
  233. distribution  diskette necessary to run the tutorial onto
  234. another diskette or onto your hard disk.  Then, store the
  235. distribution  diskette  as  a back up.  After running the
  236. tutorial from the copy, delete the  tutorial's  files  to
  237. save  space  and  continue using the copy;  it will still
  238. contain everything needed to use PC-DBMS.
  239.  
  240. If you do not have a hard disk, make a diskette  copy  of
  241. the  distribution  diskette  as follows.  Turn on your pc
  242. and load the operating system, i.e, boot  it.   You  will
  243. need a formatted blank diskette.  (The IBM Disk Operating
  244. System Manual describes booting and  formatting.)  Insert
  245. the  distribution  diskette in drive A:.  If you have two
  246. drives, insert the blank diskette in drive  B:.   In  any
  247. case, issue the following copy commands.
  248.  
  249. COPY A:*.DEF  B:
  250. COPY A:*.DAT  B:
  251. COPY A:*.EXE  B:
  252.  
  253.  
  254.  
  255.                            2-2
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273.  
  274.  
  275.                      GETTING STARTED
  276.                       INSTALLATION
  277.  
  278.  
  279. If you have a one drive system, A:  and B:  refer to  the
  280. source and distribution diskettes.  DOS will tell you how
  281. to swap them in the drive to produce the copy  after  you
  282. issue each copy command.
  283.  
  284. After making the copy, put the distribution diskette away
  285. and  insert  the  copy in drive A:.  You are ready to run
  286. the tutorial.
  287.  
  288. If you have a hard disk and are running DOS  2.x,  it  is
  289. suggested but not required that you create a subdirectory
  290. for PC-DBMS.  It is a convenient place to keep your  data
  291. base  files  and the program.  After booting your system,
  292. at the DOS prompt  enter  MD\DBMS  and  when  the  prompt
  293. returns,  enter  CD\DBMS.   You  now  have a subdirectory
  294. called \DBMS and it is presently the default  or  current
  295. directory.
  296.  
  297. Whether you created  a  subdirectory  or  not,  copy  the
  298. necessary  files  to your hard disk.  These copy commands
  299. assume that the distribution diskette is in drive A:.  If
  300. the  diskette  is  in  a  different drive, substitute its
  301. designation in the commands.
  302.  
  303. COPY A:*.DEF
  304. COPY A:*.DAT
  305. COPY A:*.EXE
  306.  
  307. After making the diskette or  hard  disk  copy,  put  the
  308. distribution  diskette  away.  On a system without a hard
  309. disk, put the copy diskette in drive A:.  You  are  ready
  310. to run the tutorial.
  311.  
  312. After you run the tutorial, you might want to delete  its
  313. sample data base from the hard disk or diskette copy.  On
  314. a  system  without  a  hard  disk,  issue  these   delete
  315. commands.
  316.  
  317. DEL A:*.DAT
  318. DEL A:*.DEF
  319. DEL A:*.IDX
  320.  
  321.  
  322. On a hard disk system, omit  the  A:   in  the  preceding
  323. commands.   The dbms program, PC-DBMS.EXE, will remain on
  324. the copy for your use.
  325.  
  326.  
  327.  
  328.                         CHAPTER 3
  329.  
  330.                     HANDS ON TUTORIAL
  331.  
  332.  
  333.  
  334. This  tutorial  will   acquaint   you   with   the   main
  335. capabilities  of  PC-DBMS  in  just  a  few pages.  It is
  336. cumulative so if this  is  your  first  exposure  to  the
  337. tutorial,  go  through  it  in order.  Within in an hour,
  338. you'll know the 80% of the program used 95% of the  time.
  339. If  you're  already  familiar with PC-DBMS, you might use
  340. the tutorial as a refresher.  It is organized by  command
  341. for convenience.
  342.  
  343. The tutorial does not cover every  command  nor  does  it
  344. cover  every  feature  and  limitation of the commands it
  345. does cover.  IF A CAPABILITY IS  NOT  MENTIONED,  DO  NOT
  346. ASSUME IT IS ABSENT.  CHECK CHAPTER 4, COMMAND REFERENCE.
  347.  
  348. To run the tutorial,  you  must  have  the  program  file
  349. PC-DBMS.EXE  and  the  sample data base files (MUSIC.DEF,
  350. COMPOSER.DAT and OPUS.DAT) all on the disk in the  logged
  351. drive.
  352.  
  353. The tutorial permanently modifies the sample data base so
  354. be  sure  you are working with a copy of the distribution
  355. diskette.
  356.  
  357.  
  358.  
  359.  
  360.  
  361.  
  362.                            3-1
  363.  
  364.  
  365.  
  366.  
  367.  
  368.  
  369.  
  370.  
  371.  
  372.  
  373.  
  374.  
  375.  
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.                     HANDS ON TUTORIAL
  383.                   STARTING THE PROGRAM
  384.  
  385.  
  386. STARTING THE PROGRAM
  387.  
  388. Boot your pc as usual.  That is, start it  and  load  the
  389. operating  system.  If you don't have a hard disk, insert
  390. the   previously   prepared   PC-DBMS    diskette    (see
  391. INSTALLATION)  into  the default drive, typically A:.  If
  392. you have a hard disk, make  the  subdirectory  containing
  393. PC-DBMS  the  default,  i.e., give the command CD\DBMS at
  394. the DOS prompt.
  395.  
  396. At the DOS prompt (e.g.,  A>),  type  PC-DBMS  and  press
  397. return.   The  welcome screen appears showing the product
  398. name, version number, etc.  Press any key.
  399.  
  400. If your pc has a color video card, you will be  asked  if
  401. you also have a color monitor.  Press Y or N.
  402.  
  403. Now the main screen of PC-DBMS appears.  At the top  left
  404. is  a wide window for you to enter commands.  Right of it
  405. are function key descriptions.  Two stripes the width  of
  406. the  screen  are  below  the  window.   You'll  see their
  407. function soon.  The bottom half of the screen, the output
  408. window,  displays  data  or help messages.  The screen is
  409. illustrated in Figure 3-1.
  410.  
  411.  
  412.  
  413.  
  414.  
  415.  
  416.  
  417.  
  418.  
  419.  
  420.  
  421.  
  422.  
  423.  
  424.  
  425.  
  426.  
  427.  
  428.                            3-2
  429.  
  430.  
  431.  
  432.  
  433.  
  434.  
  435.  
  436.  
  437.  
  438.  
  439.  
  440.  
  441.  
  442.  
  443.  
  444.  
  445.  
  446.  
  447.  
  448.                     HANDS ON TUTORIAL
  449.                   STARTING THE PROGRAM
  450.  
  451.  
  452.                                                       
  453. MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
  454. :                                           : F1=help
  455. :                                           : F2=rmv help
  456. :             COMMAND  WINDOW               : F3=prev cmd
  457. :                                           : F7=execute
  458. :                                           : F10=exit
  459. :                                           :
  460. LMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
  461.                   MESSAGE WINDOW STRIPE
  462.                   COLUMN HEADINGS STRIPE
  463. ---------------------------------------------------------
  464.  
  465.  
  466.  
  467.                        OUTPUT WINDOW
  468.  
  469.  
  470.  
  471.  
  472.  
  473. ---------------------------------------------------------
  474.  
  475. Figure 3-1.  The main screen of PC-DBMS
  476.  
  477.  
  478.  
  479. HELP
  480.  
  481. Press the F1 key (top left of keyboard).  The help menu's
  482. first  page  appears  in  the output window.  Get help on
  483. "command entry/editing", the first menu item, by pressing
  484. the  first  function  key, F1.  Read the help text in the
  485. output window.  The cursor returns to the command window.
  486. Try help on another topic if you like.
  487.  
  488.  
  489.  
  490.  
  491.  
  492.  
  493.  
  494.                            3-3
  495.  
  496.  
  497.  
  498.  
  499.  
  500.  
  501.  
  502.  
  503.  
  504.  
  505.  
  506.  
  507.  
  508.  
  509.  
  510.  
  511.  
  512.  
  513.  
  514.                     HANDS ON TUTORIAL
  515.                 COMMAND ENTRY AND EDITING
  516.  
  517.  
  518. COMMAND ENTRY AND EDITING
  519.  
  520. Whatever you type is entered in the command window.  Word
  521. wrapping   automatically   breaks   lines   so  type  the
  522. Gettysburg address without pressing carriage return.
  523.  
  524.      Four score and seven  years  ago,  our  fathers
  525.      brought  forth upon this continent a new nation
  526.      conceived  in  liberty  and  dedicated  to  the
  527.      proposition that all men are created equal ....
  528.  
  529. Use the  cursor  keys  (numeric  keypad  arrow  keys)  to
  530. position  the  cursor  at  the  "s" in "seven".  Now type
  531. "twenty-".  Next, delete it by pressing the backspace key
  532. repeatedly.
  533.  
  534. Press  the  return  key.   It  doesn't  initiate  command
  535. execution;   it  never  does.   It  breaks  the  line  at
  536. "seven".
  537.  
  538. Now execute the Gettysburg  address  like  a  command  by
  539. pressing  F7.   This  is  folly  so  an  error message is
  540. written onto the first stripe.  That's what the stripe is
  541. for.
  542.  
  543. What happens if you press F3?  Try it.  (Pressing F7  now
  544. will serve to clear the window.)
  545.  
  546.  
  547.  
  548. THE OPEN COMMAND
  549.  
  550. PC-DBMS sessions usually begin with the open command.  It
  551. makes  an  existing  data  base  available  or starts the
  552. process of creating a new  data  base.   Let's  open  the
  553. sample  data base MUSIC.  Type OPEN MUSIC (upper or lower
  554. case) in the command window and press F7 to  execute  the
  555. command.   The message window should read "Database MUSIC
  556. opened."
  557.  
  558.  
  559.  
  560.                            3-4
  561.  
  562.  
  563.  
  564.  
  565.  
  566.  
  567.  
  568.  
  569.  
  570.  
  571.  
  572.  
  573.  
  574.  
  575.  
  576.  
  577.  
  578.  
  579.  
  580.                     HANDS ON TUTORIAL
  581.                    THE SELECT COMMAND
  582.  
  583.  
  584. THE SELECT COMMAND
  585.  
  586. The select command retrieves data  from  the  data  base,
  587. displaying  it  on  screen  or writing it to a file.  The
  588. simplest select command is only two words.   Type  SELECT
  589. COMP.ALL  and  press  F7.  Figure 3-2 shows the result as
  590. displayed in the output window.
  591.  
  592. NAME                 BORN  DIED  COUNTRY          
  593.  
  594. Tchaikovsky, P.      1840  1893  Russia         
  595. Brahms, J.           1833  1897  Germany        
  596. Verdi, G.            1813  1901  Italy          
  597. Handel, G.           1685  1759  England        
  598. Mozart, W.           1756  1791  Austria        
  599. Bach, J.             1685  1750  Germany        
  600. Chopin, F.           1810  1849  France         
  601. Beethoven, L.        1770  1827  Germany        
  602. Haydn, F.            1732  1809  Austria        
  603. Mendelssohn, F.      1809  1847  Germany        
  604. Debussy, C.          1862  1918  France         
  605.  
  606. Figure 3-2.  Result of SELECT COMP.ALL
  607.  
  608. The data  base  contains  the  table  COMP  whose  entire
  609. contents  are  now  in  the  output window.  The table is
  610. stored in its own  file.   The  table  has  eleven  lines
  611. called records and four data columns called fields.
  612.  
  613. Suppose we want only composers born no earlier than 1700.
  614. Press  the  F3  key  to  recall the first select command.
  615. Press the numeric keypad's END key to place the cursor at
  616. the  command's  end.   Press  the space bar once and type
  617. WHERE BORN => 1700 so that SELECT COMP.ALL WHERE BORN  =>
  618. 1700 is in the command window.  Press F7 to execute it.
  619.  
  620. The where clause can have up to ten  conditions.   Recall
  621. the  previous  command,  position  the cursor and add AND
  622. COUNTRY =  "Germany"  so  that  the  entire  command  is:
  623. SELECT   COMP.ALL   WHERE   BORN  =>1700  AND  COUNTRY  =
  624. "Germany".  This command has two conditions.   Press  F7.
  625.  
  626.                            3-5
  627.  
  628.  
  629.  
  630.  
  631.  
  632.  
  633.  
  634.  
  635.  
  636.  
  637.  
  638.  
  639.  
  640.  
  641.  
  642.  
  643.  
  644.  
  645.  
  646.                     HANDS ON TUTORIAL
  647.                    THE SELECT COMMAND
  648.  
  649.  
  650. Note  that  text strings are enclosed in quote marks.  We
  651. could connect the conditions with OR  in  place  of  AND.
  652. That would change the query's meaning.
  653.  
  654. Let's retrieve the same data  alphabetized.   Recall  the
  655. previous  command,  position  the  cursor at its end, add
  656. SORTED BY NAME and press F7.  Note that a  where  clause,
  657. if present, precedes the sort clause.
  658.  
  659. It's possible to choose which fields  are  displayed  and
  660. their  order.  Recall the previous command and edit it to
  661. read SELECT COMP.BORN NAME COUNTRY by  using  the  cursor
  662. keys,  backspace  and  the delete key (Del).  Execute the
  663. command.
  664.  
  665. The  MUSIC  data  base  also  contains  the  table  OPUS.
  666. PC-DBMS  permits  its contents to be displayed along with
  667. the contents of  COMP.   Execute  SELECT  COMP.BORN  NAME
  668. OPUS.ALL.   Some output will scroll off screen and what's
  669. left is shown in Figure 3-3.
  670.  
  671. BORN  NAME               COMPOSER          WORK                       
  672.  
  673. 1685  Handel, G.         Beethoven, L.     Symphony No. 5
  674. 1756  Mozart, W.         Brahms, J.        Lullaby
  675. 1756  Mozart, W.         Beethoven, L.     Symphony No. 5
  676. 1685  Bach, J.           Brahms, J.        Lullaby
  677. 1685  Bach, J.           Beethoven, L.     Symphony No. 5
  678. 1810  Chopin, F.         Brahms, J.        Lullaby
  679. 1810  Chopin, F.         Beethoven, L.     Symphony No. 5
  680. 1770  Beethoven, L.      Brahms, J.        Lullaby
  681. 1770  Beethoven, L.      Beethoven, L.     Symphony No. 5
  682. 1732  Haydn, F.          Brahms, J.        Lullaby
  683. 1732  Haydn, F.          Beethoven, L.     Symphony No. 5
  684. 1809  Mendelssohn, F.    Brahms, J.        Lullaby
  685. 1809  Mendelssohn, F.    Beethoven, L.     Symphony No. 5
  686. 1862  Debussy, C.        Brahms, J.        Lullaby
  687. 1862  Debussy, C.        Beethoven, L.     Symphony No. 5
  688.  
  689. Figure 3-3.  Result of SELECT COMP.BORN NAME OPUS.ALL
  690.  
  691.  
  692.                            3-6
  693.  
  694.  
  695.  
  696.  
  697.  
  698.  
  699.  
  700.  
  701.  
  702.  
  703.  
  704.  
  705.  
  706.  
  707.  
  708.  
  709.  
  710.  
  711.  
  712.                     HANDS ON TUTORIAL
  713.                    THE SELECT COMMAND
  714.  
  715.  
  716. The composers' birth  years  and  names  from  COMP  were
  717. paired   with   their   names   and   works   from  OPUS.
  718. Unfortunately, Debussy's  vital  statistics  were  paired
  719. with   a  Beethoven  symphony  and  so  forth.   Add  the
  720. following clause to the command to match  composers  only
  721. with  their  own  works:   WHERE  COMPOSER  =  COMP.NAME.
  722. Execute the corrected command.
  723.  
  724. Linking related records from different tables is called a
  725. join.   Records  from  the two tables are joined together
  726. only when they have the  same  composer  name,  that  is,
  727. WHERE OPUS.COMPOSER = COMP.NAME.
  728.  
  729. Let's look again at the join command:   SELECT  COMP.BORN
  730. NAME  OPUS.ALL  WHERE  COMPOSER  =  COMP.NAME.  The first
  731. occurrence of  "COMP."  (in  COMP.BORN)  makes  COMP  the
  732. default  table.  Subsequent field names not preceded by a
  733. table name (NAME) are presumed to  be  from  COMP.   When
  734. OPUS.ALL  is  encountered,  the  default table changes to
  735. OPUS.  Hence, COMPOSER is assumed to mean OPUS.COMPOSER.
  736.  
  737. A field name explicitly qualified by a table name such as
  738. COMP.BORN  is  called  a  qualified  field name.  You can
  739. qualify any field name;   the  default  capability  is  a
  740. convenience to save typing.
  741.  
  742. Sometimes a select command retrieves so many records that
  743. they  start  to  scroll  off  screen.  You can freeze the
  744. action by pressing control-S (hold the  control  key  and
  745. press "s" once).  Then press any key to resume scrolling.
  746. However, to terminate retrieval prematurely, press F10.
  747.  
  748. You should know about one last  select  capability.   The
  749. result  of  the  select command can become a table in the
  750. data base rather than a  display  on  the  screen.   Just
  751. append  a  clause  like  INTO  NU_TABLE to the end of the
  752. select  command.   Then  you  can  run  queries   against
  753. NU_TABLE  or  whatever  name you give the new table.  Try
  754. the  previous  select  command  with  the   clause   INTO
  755. JOIN_TBL.   Execute  another  select  command against the
  756. JOIN_TBL to confirm its existence.  (THIS  EXERCISE  WILL
  757.  
  758.                            3-7
  759.  
  760.  
  761.                     HANDS ON TUTORIAL
  762.                    THE SELECT COMMAND
  763.  
  764.  
  765. PERMANENTLY ALTER THE SAMPLE DATA BASE SO BE SURE YOU ARE
  766. WORKING WITH A COPY.)
  767.  
  768. One reason to save the query result in a table is to do a
  769. three  way  join such as to join together tables A, B and
  770. C.  The select command accepts no  more  than  two  table
  771. names before the into clause.  So use a select command to
  772. join A and B INTO X.  Then use a second select command to
  773. join X and C.
  774.  
  775.  
  776.  
  777. THE SHOW COMMAND
  778.  
  779. So far we have discovered two tables in  the  MUSIC  data
  780. base.   Are  there  others?  Type SHOW and press F7.  The
  781. result is in Figure 3-4.  In fact, there are 3 tables.
  782.  
  783. TABLE NAME   FILE          RECORDS FIELDS  EOR   MODIFIED
  784.  
  785. COMP         COMPOSER.DAT      11      6    2  11-25-1984
  786. OPUS         OPUS.DAT           2      2    2  11-25-1984
  787. JOIN_TBL     JOIN_TBL.DAT       2      4    2  12-15-1984
  788.  
  789. Figure 3-4.  Result of SHOW
  790.  
  791. The recall and default table capabilities and the command
  792. editor  save  typing.   Keyword  truncation saves typing,
  793. too.   Any  keyword  longer  than  3  characters  can  be
  794. truncated  to 3 or more characters.  For example, SHO has
  795. the same meaning as SHOW.  Try it!
  796.  
  797. Keywords are the boilerplate of commands.   Examples  are
  798. select,  show,  open  and  into.  The names of data bases
  799. (MUSIC),  tables  (COMP)  and  fields  (BORN)   are   not
  800. keywords.   Neither  are  field values such as "Germany".
  801. Don't truncate names and values, only keywords.
  802.  
  803. The show  command  can  retrieve  additional  information
  804. about the tables in the data base.  Try SHO\DESCRIBE.  It
  805. brings up verbal descriptions of the tables.
  806.  
  807.                            3-8
  808.  
  809.                     HANDS ON TUTORIAL
  810.                     THE SHOW COMMAND
  811.  
  812.  
  813. Show can also retrieve information about fields.  Execute
  814. SHO\FIELDS  but press control-S before any output scrolls
  815. off  screen.   When  ready,  press  any  key  to   resume
  816. scrolling.  The entire result is shown in Figure 3-5.
  817.  
  818.    FIELD NAME   TYPE KEY FROM    TO
  819.  
  820.  
  821.  
  822. TABLE   COMP            
  823.  
  824. NAME              T   N     1    19
  825. BORN              N   N    20    23
  826. filler1           F   N    24    24
  827. DIED              N   N    25    28
  828. filler2           F   N    29    29
  829. COUNTRY           T   N    30    44
  830.  
  831.  
  832. TABLE   OPUS            
  833.  
  834. COMPOSER          T   N     1    19
  835. WORK              T   N    20    44
  836.  
  837.  
  838. TABLE   JOIN_TBL
  839.  
  840. BORN              N   N     1     4
  841. NAME              T   N     5    23
  842. COMPOSER          T   N    24    42
  843. WORK              T   N    43    67 
  844.  
  845. Figure 3-5.  Result of the command SHO\FIELDS
  846.  
  847. Consider COMP.  It has two fields, filler1  and  filler2,
  848. which  have  been hidden so far.  That's because they are
  849. filler or F type fields.  The  fields  which  select  has
  850. displayed  are  either  text (T) or numeric (N).  All the
  851. fields in MUSIC are not KEYed (N),  i.e.,  there  are  no
  852. indices yet.  The last two columns give the beginning and
  853. ending character positions in the file for each field.
  854.  
  855.                            3-9
  856.  
  857.                     HANDS ON TUTORIAL
  858.                     THE SHOW COMMAND
  859.  
  860.  
  861. Finally, verbal descriptions of fields can be  retrieved.
  862. Execute SHO\FIE\DES.
  863.  
  864. Any of the four show command forms can be followed by one
  865. or  more table names.  Then, only the information for the
  866. indicated table(s) will be retrieved.  For  example,  try
  867. SHO\FIE COMP.
  868.  
  869. The show  command  displays  the  contents  of  the  data
  870. dictionary, known as the schema.  PC-DBMS uses the schema
  871. internally.
  872.  
  873.  
  874.  
  875. THE REMOVE COMMAND
  876.  
  877. The table JOIN_TBL you  created  with  a  select  command
  878. keeps  appearing  when show commands are executed.  Let's
  879. remove it from the schema.  Execute REMOVE  JOIN_TBL  and
  880. try  a  show  command  to confirm the deletion.  The file
  881. JOIN_TBL.DAT which contained the table  is  not  deleted.
  882. Only the schema is altered.
  883.  
  884.  
  885.  
  886. THE DISPLAY COMMAND
  887.  
  888. The display command invokes the display utility  to  add,
  889. delete  or  modify  records.   The  utility automatically
  890. creates a full screen data entry form.
  891.  
  892. [THE FOLLOWING  EXERCISES  WILL  PERMANENTLY  MODIFY  THE
  893. SAMPLE DATA BASE.  BE SURE YOU ARE USING A COPY.]
  894.  
  895. Suppose we want to  add  a  record  to  the  COMP  table.
  896. Execute  DISPLAY/INPUT  COMP  and  watch  the  data entry
  897. screen appear.  Note that INPUT  appears  at  the  bottom
  898. right.   Field  names are placed next to blocks for field
  899. values.
  900.  
  901.  
  902.  
  903.                           3-10
  904.  
  905.                     HANDS ON TUTORIAL
  906.                    THE DISPLAY COMMAND
  907.  
  908.  
  909. The display utility has its own help;  press  F1.   After
  910. you  read  the  help  text  on  screen,  press any key to
  911. restore the data entry form.
  912.  
  913. Let's enter a record for another composer.  In the  block
  914. marked NAME, type Dvorak, A.  Then press tab.  The cursor
  915. now jumps to the BORN block.  Enter 1841 and  press  tab.
  916. Enter the entire four field record:
  917.  
  918. Dvorak, A.    1841    1904      Czechoslovakia    
  919.  
  920. If you entered a  field  incorrectly,  return  to  it  by
  921. pressing  F9  or  tab  repeatedly.   Then  type  over the
  922. erroneous entry.  The cursor keys will  move  you  around
  923. within  each field block.  Try editing even if you didn't
  924. make an error.
  925.  
  926. Press F7 to add this  record  to  the  COMP  table.   The
  927. record  will  be stored if the two numeric fields contain
  928. numbers.  If there is a defective entry for a number,  an
  929. error  message  will  appear  on  the bottom line and the
  930. cursor will be placed in the offending  field  block  for
  931. you to make a correction.
  932.  
  933. After adding a record, the field blocks  are  cleared  so
  934. you  can  enter  another  record.   For now, press F10 to
  935. leave the display utility and return to the main  screen.
  936. If  you  like, confirm the addition of Dvorak's record by
  937. executing SELECT COMP.ALL.
  938.  
  939. Now, let's use the display utility to fix  the  error  in
  940. Beethoven's  record.  Execute DIS\EDIT COMP and note that
  941. the same data entry screen reappears except now it  shows
  942. QUERY at the bottom right rather than INPUT.
  943.  
  944. First, we have to find Beethoven's record.  Then we  have
  945. to  edit  and  store  it.  The QUERY screen finds records
  946. which are then displayed on the EDIT screen.
  947.  
  948.  
  949.  
  950.  
  951.                           3-11
  952.  
  953.                     HANDS ON TUTORIAL
  954.                    THE DISPLAY COMMAND
  955.  
  956.  
  957. Beethoven was born in 1770 so we will  find  all  records
  958. containing  a  birth  year  of  1770.  This will bring up
  959. Beethoven's record and possibly others.  Tab to the  BORN
  960. field block on the QUERY screen and enter 1770.  Press F7
  961. to start the search for 1770 records.
  962.  
  963. At the bottom right, QUERY changes to  EDIT  and  a  1770
  964. record  appears.   It's  Beethoven's  record.  Tab to the
  965. COUNTRY block.  Beethoven lived mainly  in  Austria,  not
  966. Germany.   Make  the  change by typing over the incorrect
  967. entry.  Press F6 to save the corrected  record.   If  you
  968. wanted  to delete the record, you could press F4 instead.
  969. Or you could press F7 to leave it intact.  Here  are  the
  970. choices:
  971.  
  972. F4  = delete record              \
  973. F6  = change record to edited one > & display next record
  974. F7  = leave unchanged            /
  975. F10 = leave unchanged, return to QUERY screen
  976.  
  977. F4, F6 and F7 cause display of the next 1770  record,  if
  978. there  is  one.   However,  Beethoven's  is the only 1770
  979. record so the  screen  clears  and  a  message  "No  more
  980. records"  appears.   Press  any  key.   The  QUERY screen
  981. reappears.  You can  now  repeat  the  cycle  of  finding
  982. records (QUERY screen) and correcting them (EDIT screen).
  983.  
  984. From the QUERY screen, you can exit to the main screen by
  985. pressing F10.  Do so.
  986.  
  987.  
  988.  
  989. THE DEFINE COMMAND
  990.  
  991. The define command invokes the define utility which  adds
  992. definitions  of  tables  and  their fields to the schema.
  993. The utility consists of two prompting screens.  The first
  994. screen is used to describe a table.  The second screen is
  995. for describing a field.
  996.  
  997.  
  998.  
  999.                           3-12
  1000.  
  1001.                     HANDS ON TUTORIAL
  1002.                    THE DEFINE COMMAND
  1003.  
  1004.  
  1005. Let's define  a  new  table  with  two  fields.   Execute
  1006. DEFINE.   The first of the prompting screens replaces the
  1007. main screen.  It asks a sequence of four questions  about
  1008. the  new  table.   Figure  3-6  shows the screen with all
  1009. questions answered.  Complete your screen similarly.  Use
  1010. the  backspace  and  cursor keys for editing.  The second
  1011. screen appears when  you  press  return  after  the  last
  1012. question.
  1013.  
  1014. ---------------------------------------------------------
  1015.      
  1016.                   DESCRIPTION OF NEW TABLE
  1017.    
  1018.    
  1019. Name of table:  ORCHESTRAS
  1020.                           
  1021. File spec of file to hold ORCHESTRAS:
  1022.                 ORCHSTRA.TXT
  1023.                                      
  1024. Enter description of table (optional):
  1025.   INFORMATION ABOUT SOME ORCHESTRAS
  1026.  
  1027. Enter code for record terminator: 2   0 Nothing
  1028.                                       1 Carriage return
  1029.                                       2 Carriage return-
  1030.                                           line feed
  1031.  
  1032.  
  1033.  
  1034.                           F10 to quit
  1035. ---------------------------------------------------------
  1036.  
  1037. Figure 3-6.  The define utility's first or table 
  1038.   definition screen
  1039.  
  1040. The second screen asks a sequence of five questions about
  1041. the  new  tables's  first  field.   Figure  3-7 shows the
  1042. screen with all questions answered.  Complete your screen
  1043. similarly.
  1044.  
  1045.  
  1046.  
  1047.                           3-13
  1048.  
  1049.                     HANDS ON TUTORIAL
  1050.                    THE DEFINE COMMAND
  1051.  
  1052.  
  1053. ---------------------------------------------------------
  1054.                           
  1055.                    DESCRIPTION OF FIELD     
  1056.                
  1057.                  
  1058. Name of field:  ORCHESTRA      
  1059.                                        Data Type Choices
  1060. Enter first letter of data type: T     Text Number Filler
  1061.                         
  1062.                                      
  1063. How wide in characters is field ORCHESTRA?      25
  1064.                    
  1065. Index field (Y/N)?   N       
  1066.                          
  1067. Enter description of field (optional):  
  1068.         THE ORCHESTRA'S NAME, E.G., CHICAGO SYMPHONY
  1069.  
  1070.  
  1071.  
  1072.  
  1073.  
  1074.                 F10 to stop defining fields 
  1075. ---------------------------------------------------------
  1076.  
  1077. Figure 3-7.  The define utility's second or field 
  1078.   definition screen
  1079.  
  1080. When you press return after the last question,  the  same
  1081. field  definition  screen  restarts so you can define the
  1082. second field.  Complete it.  Here are the five  questions
  1083. and answers for the second field.
  1084.  
  1085. FIELD NAME           CONDUCTOR
  1086. DATA TYPE            T        
  1087. FIELD WIDTH          19       
  1088. INDEX                N        
  1089. VERBAL DESCRIPTION   Last name, first name of 
  1090.                        music director
  1091.  
  1092.  
  1093.  
  1094.  
  1095.                           3-14
  1096.  
  1097.                     HANDS ON TUTORIAL
  1098.                    THE DEFINE COMMAND
  1099.  
  1100.  
  1101. The field definition screen is now prompting for  another
  1102. field's description but we're finished.  To terminate the
  1103. field definition cycle, press F10.
  1104.  
  1105. Now the first or table definition screen reappears.   You
  1106. could define another table and its fields but we're done.
  1107. Press F10 to exit the definition utility and restore  the
  1108. main screen.
  1109.  
  1110. Try SHO\FIELDS ORCHESTRAS to confirm addition of the  new
  1111. table  to  the  schema.   If you want, add records to the
  1112. table with DIS\INPUT ORCHESTRAS.
  1113.  
  1114.  
  1115.  
  1116. THE KEY AND DEKEY COMMANDS
  1117.  
  1118. PC-DBMS can index a field.  The index or key works like a
  1119. book's  index;   it  speeds searches.  In addition, a key
  1120. can provide a sorted retrieval without doing a sort.
  1121.  
  1122. You can tell if a field is keyed from the KEY  column  in
  1123. the SHOW\FIELD command's output.  See Figure 3-5.
  1124.  
  1125. If a field is keyed, its index will be updated whenever a
  1126. value  in  that field is added, deleted or changed by the
  1127. display utility.  Index updating slows  file  maintenance
  1128. and  indices use disk space so only certain fields should
  1129. be keyed.
  1130.  
  1131. A field starts life without indexing if  created  by  the
  1132. SELECT  ...   INTO  command.  It may start out indexed if
  1133. created by the define utility.  See Figure  3-7's  fourth
  1134. question.
  1135.  
  1136. If a field does not already have an index, you  can  give
  1137. it  one  with  the  key  command.  Execute KEY COMP.NAME.
  1138. Confirm the indexing  with  SHOW/FIE  COMP.   Try  SELECT
  1139. COMP.ALL  SORTED  BY  NAME.  The retrieval will be sorted
  1140. and a little faster than without the key.  The  speed  up
  1141. is dramatic on tables with many records.
  1142.  
  1143.                           3-15
  1144.  
  1145.                     HANDS ON TUTORIAL
  1146.                THE KEY AND DEKEY COMMANDS
  1147.  
  1148.  
  1149. You can remove a key with  the  dekey  command.   Execute
  1150. DEKEY COMP.NAME.  Now try SELECT COMP.ALL SORTED BY NAME.
  1151. Did you notice the slow down?
  1152.  
  1153. Indexing is  especially  important  in  joins.   Consider
  1154. SELECT COMP.ALL OPUS.WORK WHERE OPUS.COMPOSER = COMP.NAME
  1155. AND BORN > 1800.  The  join  condition,  OPUS.COMPOSER  =
  1156. COMP.NAME, will process much more quickly if at least one
  1157. of the two fields is keyed.  The COMP.BORN condition also
  1158. will process more quickly if that field is keyed.
  1159.  
  1160. However, the where clause exploits no more than one index
  1161. per  table.   Hence, keys will be most used if they're on
  1162. fields in different tables, e.g.,  on  OPUS.COMPOSER  and
  1163. COMP.BORN.
  1164.  
  1165. Indexing  is  never  necessary  in  PC-DBMS.    It   only
  1166. accelerates processing, sometimes dramatically, though.
  1167.  
  1168.  
  1169.  
  1170. THE EXIT COMMAND
  1171.  
  1172. There is an exit command but the simple way to execute it
  1173. is  to  press  F10.  You're now back at the DOS level and
  1174. done with PC-DBMS.
  1175.  
  1176.  
  1177.  
  1178.  
  1179.  
  1180.  
  1181.  
  1182.  
  1183.  
  1184.  
  1185.  
  1186.  
  1187.  
  1188.  
  1189.  
  1190.  
  1191.                           3-16
  1192.  
  1193.  
  1194.  
  1195.  
  1196.  
  1197.  
  1198.  
  1199.  
  1200.  
  1201.  
  1202.  
  1203.  
  1204.  
  1205.  
  1206.  
  1207.  
  1208.  
  1209.  
  1210.  
  1211.  
  1212.  
  1213.  
  1214.  
  1215.  
  1216.  
  1217.  
  1218.  
  1219.  
  1220.  
  1221.  
  1222.  
  1223.                         CHAPTER 4
  1224.  
  1225.                          GENERAL
  1226.  
  1227.  
  1228.  
  1229. DESCRIPTION OF A PC-DBMS DATA BASE
  1230.  
  1231. A PC-DBMS data base consists of  three  kinds  of  files.
  1232. The  data  base  definitions  (schema) reside in one file
  1233. that has a "DEF" extension.  Its file name is the name of
  1234. the  data  base.   This file must exist.  The schema file
  1235. must be in the current directory of the logged drive.
  1236.  
  1237. The data of a data base are in  named  tables  that  have
  1238. records  and fields.  Each table resides in its own file.
  1239. Nothing else is in these files.  The name of the file may
  1240. be  different  from  the  name  of the table it contains.
  1241. There may be any number of data files associated  with  a
  1242. data base.
  1243.  
  1244. Indices are in the third type of file.  There may be zero
  1245. or  one  index files for each data file.  Each index file
  1246. holds the  indices  for  all  the  keyed  fields  of  the
  1247. corresponding data file.  The disk drive and file name of
  1248. the index file are the same as the drive and file name of
  1249. the  corresponding  data file.  However, the index file's
  1250. extension is IDX.
  1251.  
  1252.  
  1253.  
  1254.  
  1255.  
  1256.  
  1257.                            4-1
  1258.  
  1259.  
  1260.  
  1261.  
  1262.  
  1263.  
  1264.  
  1265.  
  1266.  
  1267.  
  1268.  
  1269.  
  1270.  
  1271.  
  1272.  
  1273.  
  1274.  
  1275.  
  1276.  
  1277.                          GENERAL
  1278.                        LIMITATIONS
  1279.  
  1280.  
  1281. LIMITATIONS
  1282.  
  1283. Each table may have up to 32767 records including deleted
  1284. records.   Each  record  may  have up to 999 fields.  The
  1285. schema file holds up  to  32767  records.   It  uses  one
  1286. record  for  each  table  and  another  for  each  field.
  1287. Deleting definition records  (with  the  remove  command)
  1288. does not reduce the count.
  1289.  
  1290.  
  1291.  
  1292. DATA FILE STRUCTURE, IMPORT AND EXPORT
  1293.  
  1294. Each data file contains the entirety  of  one  table  and
  1295. nothing else.  The file is an ASCII representation of the
  1296. table.  That is, there is no packing or data  compression
  1297. and  numbers  are  represented  as text, not in binary or
  1298. other format.
  1299.  
  1300. The use of ASCII files to  represent  tables  facilitates
  1301. import  and  export  of  tables between PC-DBMS and other
  1302. applications.  The show\fields command is used to  obtain
  1303. the  definition  of  a  table for export.  Use the define
  1304. utility to describe an imported table to PC-DBMS.
  1305.  
  1306. Indices may be unreliable if an indexed table is  altered
  1307. by  another  program.   Indices should be rebuilt.  Also,
  1308. record counts exhibited  by  the  show  command  are  not
  1309. reliable   on  tables  supplied  or  altered  externally.
  1310. However, the erroneous record count is innocuous.
  1311.  
  1312. PC-DBMS flags a deleted record by placing a backslash (\)
  1313. in the first character position.
  1314.  
  1315.  
  1316.  
  1317.  
  1318.  
  1319.  
  1320.  
  1321.  
  1322.  
  1323.                            4-2
  1324.  
  1325.  
  1326.  
  1327.  
  1328.  
  1329.  
  1330.  
  1331.  
  1332.  
  1333.  
  1334.  
  1335.  
  1336.  
  1337.  
  1338.  
  1339.  
  1340.  
  1341.  
  1342.  
  1343.                          GENERAL
  1344.                       OBJECT NAMES
  1345.  
  1346.  
  1347. OBJECT NAMES
  1348.  
  1349. The names of data bases, tables  and  fields  consist  of
  1350. alphanumeric  characters  and  the  underscore  (_).  The
  1351. first character of a name must be alphabetic.  Do not use
  1352. PC-DBMS's  keywords  as names.  See Appendix A.  Although
  1353. PC-DBMS   will   accept   non-conforming    names,    the
  1354. consequences  are  unpredictable.   Case does not matter.
  1355. Data base names are  1-8  characters.   Table  and  field
  1356. names  are  1-16  characters.  However, tables created by
  1357. the select ...  into command are limited to 1-8 character
  1358. names.
  1359.  
  1360. Most commands use "qualified field  names."  A  qualified
  1361. field  name  is  a field name preceded by the name of its
  1362. table and a period.  For example, COMP.BORN is the  field
  1363. BORN from the table COMP.
  1364.  
  1365.  
  1366.  
  1367. THE PC-DBMS EDITOR
  1368.  
  1369. Upon invoking the program, its main screen  will  appear.
  1370. A  framed  window is at the top left.  Commands are typed
  1371. into it.  A word processing type editor operates  in  the
  1372. command  window.   The  same editor operates in the field
  1373. blocks of the data entry  form  created  by  the  display
  1374. command.  The following describes the editor.
  1375.  
  1376. There are two modes, insert  and  replace.   The  default
  1377. mode  is  insert  in  the  command window.  The cursor is
  1378. "low" in this  mode.   Pressing  the  "Ins"  key  toggles
  1379. between  the  modes.   In  the  display utility, only the
  1380. replace mode is available and the cursor is "high."
  1381.  
  1382. In insert mode, each entered character pushes those after
  1383. it  rightward.   If  a  word  would  be pushed out of the
  1384. display area, a flying reform occurs.  That is, the  last
  1385. word is put at the beginning of the next line (word wrap)
  1386. and all text that was on that line is pushed right  which
  1387. may  cause word wrap and reform of the following line and
  1388.  
  1389.                            4-3
  1390.  
  1391.  
  1392.  
  1393.  
  1394.  
  1395.  
  1396.  
  1397.  
  1398.  
  1399.  
  1400.  
  1401.  
  1402.  
  1403.  
  1404.  
  1405.  
  1406.  
  1407.  
  1408.  
  1409.                          GENERAL
  1410.                    THE PC-DBMS EDITOR
  1411.  
  1412.  
  1413. so forth.
  1414.  
  1415. In replace mode, an entered character  replaces  the  one
  1416. that was at the cursor.
  1417.  
  1418. The following applies to both modes.
  1419.  
  1420. The delete key deletes the character under the cursor and
  1421. the  backspace  key deletes the preceding character.  The
  1422. line is closed up in either case by  shifting  subsequent
  1423. characters left.
  1424.  
  1425. The four cursor keys function.  The  Home  and  End  keys
  1426. move  the  cursor to the beginning and end of the current
  1427. line.  The Page Up key moves  the  cursor  to  the  first
  1428. position in the window or field block.
  1429.  
  1430. Carriage return breaks a line at the  cursor.   That  is,
  1431. all characters at and after the cursor are shifted to the
  1432. next line.  A flying reform will occur.  (Carriage return
  1433. does not initiate command execution.)
  1434.  
  1435.  
  1436.  
  1437. COMMAND FORMATTING AND EXECUTION
  1438.  
  1439. Commands may spread over  as  many  lines  as  necessary.
  1440. There is no continuation character.
  1441.  
  1442. Words or items in a command are separated by one or  more
  1443. spaces.   The  space  is the only separator recognized by
  1444. PC-DBMS.
  1445.  
  1446. Numbers may be preceded by  a  sign  and  may  contain  a
  1447. decimal  point.   They may be followed immediately by "E"
  1448. or "e"  and  a  signed  or  unsigned  integer  to  obtain
  1449. scientific   representation.   For  example,  VELOCITY  >
  1450. 3.35E+11.
  1451.  
  1452.  
  1453.  
  1454.  
  1455.                            4-4
  1456.  
  1457.  
  1458.  
  1459.  
  1460.  
  1461.  
  1462.  
  1463.  
  1464.  
  1465.  
  1466.  
  1467.  
  1468.  
  1469.  
  1470.  
  1471.  
  1472.  
  1473.  
  1474.  
  1475.                          GENERAL
  1476.             COMMAND FORMATTING AND EXECUTION
  1477.  
  1478.  
  1479. Character  strings  must  be  entered  in  quotes.    For
  1480. example, NAME = "Smith".  Use a pair of quotes to embed a
  1481. quote mark in a string.   For  example,  NAME  =  "Herman
  1482. ""Babe"" Ruth".
  1483.  
  1484. Comments, which are ignored by PC-DBMS, may be placed  in
  1485. commands.   They  are  preceded  by an apostrophe (').  A
  1486. comment ends a command.
  1487.  
  1488. PC-DBMS keywords may be entered in upper, lower or  mixed
  1489. case.  They may be truncated to three or more characters.
  1490.  
  1491. The F3 key  clears  the  window  and  puts  the  previous
  1492. command into it for possible editing.
  1493.  
  1494. The F7 key executes the command in the window.  (Carriage
  1495. return  is  used  for  editing  only.)  If the command is
  1496. flawed, an error  or  warning  message  will  be  issued.
  1497. Command  execution  is  aborted if there is an error.  If
  1498. only a warning is given, execution  will  proceed.   Most
  1499. messages are errors.
  1500.  
  1501. The F10 key executes the exit  command,  terminating  the
  1502. program and returning the user to the operating system.
  1503.  
  1504.  
  1505.  
  1506. HELP
  1507.  
  1508. A help facility is available in the main  screen.   Press
  1509. F1  to obtain the first page of a multi-page menu of help
  1510. topics.  The menu and cursor appear in the bottom half of
  1511. the  main  screen,  occluding  any  data display that was
  1512. there.
  1513.  
  1514. Cycle through the menu pages by pressing F9 or quit  help
  1515. by  pressing F10.  Obtain the help message on a menu item
  1516. by pressing the function  key  (F1-F8)  corresponding  to
  1517. that  item's  menu  number (1-8).  The message remains in
  1518. the bottom half of the main screen  although  the  cursor
  1519. returns to the command window.
  1520.  
  1521.  
  1522.  
  1523.                          GENERAL
  1524.                           HELP
  1525.  
  1526.  
  1527. The data display occluded by the help menu  and  messages
  1528. can be restored by pressing F2.
  1529. .T:a:manual.2 
  1530.  
  1531.